package com.backend.mzyf.service;

import com.backend.mzyf.entity.ActiveUser;
import com.backend.mzyf.entity.SysPermission;
import com.backend.mzyf.entity.SysUser;

import java.util.List;

public interface SysService {

    //根据用户的身份和密码进行认证，如果认证通过，返回用户身份信息
    public ActiveUser authenticat(String usercode, String password) throws Exception;

    //根据用户账号查询用户信息
    public SysUser findSysUserByUsercode(String usercode) throws  Exception;

    //根据用户id查询权限的url
    public List<SysPermission> findPermissionByUserId(String userId) throws Exception;

    //根据用户id查询菜单
    public List<SysPermission> findMenuByUserId(String userId) throws Exception;


}
